package org.apache.rocketmq.logging.inner.layouts;

import org.apache.rocketmq.logging.inner.Layout;
import org.apache.rocketmq.logging.inner.LoggingEvent;

public class SimpleLayout extends Layout {

    @Override
    public String format(LoggingEvent event) {

        StringBuilder sb = new StringBuilder();
        sb.append(event.getLevel().toString());
        sb.append(" - ");
        sb.append(event.getRenderedMessage());
        sb.append("\r\n");
        return sb.toString();
    }

    @Override
    public boolean ignoresThrowable() {
        return false;
    }
}